#ifndef _HEX_SPI_H_
#define _HEX_SPI_H_

#include "types.h"

extern int SPI_open(int ch, uint32 baudrate);
extern int SPI_close(int ch);
extern int SPI_write(int ch, uint8 *buffer, uint32 lenb);
extern int SPI_read(int ch, uint8 *buffer, uint32 lenb);

#endif // ifndef _SPI_H_
